﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;

namespace ERPStore.NewsLetters.Repositories.Mapping
{
	internal class PendingItemMap : EntityTypeConfiguration<Datas.PendingItemData>
	{
		public PendingItemMap()
		{
			this.HasKey(e => e.Id);
			this.Property(e => e.Id)
				.IsRequired()
				.HasDatabaseGeneratedOption(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity);


			this.ToTable("NewsLetterPendingItem");
		}
	}
}
